package com.ssm.blog.service;

import com.github.pagehelper.PageInfo;
import com.ssm.blog.pojo.Diary;
import com.ssm.blog.pojo.criteria.DiaryCriteria;

public interface DiaryService {
    void addDiary(Diary diary);

    PageInfo<Diary> getDiaryList(DiaryCriteria criteria, int page, int pageSize);

    void deleteDiary(Integer id);
}
